import {TASK_NEW,TASK_OPEN,TASK_CLOSE} from '../constants/ActionTypes'

 const  hwndUUID=null;

const initialState={
        hwnd:null,
        title:'',
        show:false,
        task:'',
        event:null,
 
}

const Task=(state=initialState,action)=>{
    console.log(action)
    switch(action.type){
        case TASK_NEW://新建应用
      var temp=Object.assign({}, state, {
            task:action.task.task,
            title:action.task.title,
            hwnd:action.task.hwnd,
            event:TASK_NEW,
          });
          console.log(temp)
          return temp;
          default:
          return state;



    }
}

export default Task;


